//
//  Segmenter.h
//  OneToOne
//
//  Created by ByteDance on 2023/3/10.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol SegmenterDelegate <NSObject>

- (void)receviceCVPixelBufferRef:(CVImageBufferRef)buffer;
- (void)receviceSendBuffer:(CVImageBufferRef)buffer;

@end
@interface Segmenter : NSObject
@property (nonatomic, weak) id<SegmenterDelegate> delegate;
- (void)processWithBuffer:(CMSampleBufferRef)sampleBuffer;
@end

NS_ASSUME_NONNULL_END
